import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import login from '@/views/login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      children:[
        {
          path: '/JK/jkOne',
          name: 'jkOne',
          component: ()=> import('@/views/JK/jkOne'),
          meta: {
            title: '驾考科目一'
          }
        },
        {
          path: '/JK/jkFour',
          name: 'jkFour',
          component: ()=> import('@/views/JK/jkFour'),
          meta: {
            title: '驾考科目四'
          }
        },
        {
          path: '/TUSHU/index',
          name: 'tushu',
          component: ()=> import('@/views/TUSHU/index')
        },
        {
          path: '/TUSHU/xiangqing',
          name: 'tushucontent',
          component: ()=> import('@/views/TUSHU/xiangqing'),
          meta: {
            title: '图书信息'
          }
        },
        {
          path: '/XW/toutiao',
          name: 'toutiao',
          component : ()=> import('@/views/XW/toutiao'),
          meta: {
            title: '头条新闻'
          }
        },
        {
          path: '/XW/shehui',
          name: 'shehui',
          component : ()=> import('@/views/XW/shehui'),
          meta: {
            title: '社会新闻'
          }
        },
        {
          path: '/XW/guonei',
          name: 'guonei',
          component : ()=> import('@/views/XW/guonei'),
          meta: {
            title: '国内新闻'
          }
        },
        {
          path: '/XW/guoji',
          name: 'guoji',
          component : ()=> import('@/views/XW/guoji'),
          meta: {
            title: '国际新闻'
          }
        },
        {
          path: '/XW/yule',
          name: 'yule',
          component : ()=> import('@/views/XW/yule'),
          meta: {
            title: '娱乐新闻'
          }
        },
        {
          path: '/XW/tiyu',
          name: 'tiyu',
          component : ()=> import('@/views/XW/tiyu'),
          meta: {
            title: '体育新闻'
          }
        },
        {
          path: '/XW/junshi',
          name: 'junshi',
          component : ()=> import('@/views/XW/junshi'),
          meta: {
            title: '军事新闻'
          }
        },
        {
          path: '/XW/keji',
          name: 'keji',
          component : ()=> import('@/views/XW/keji'),
          meta: {
            title: '科技新闻'
          }
        },
        {
          path: '/XW/caijing',
          name: 'caijing',
          component : ()=> import('@/views/XW/caijing'),
          meta: {
            title: '财经新闻'
          }
        },
        {
          path: '/XW/shishang',
          name: 'shishang',
          component : ()=> import('@/views/XW/shishang'),
          meta: {
            title: '时尚新闻'
          }
        },
        {
          path: '/ZTJJDATA/index',
          name: 'ztjjdata',
          component: ()=> import('@/views/ZTJJDATA/index'),
          meta: {
            title: '可视化基金数据'
          }
        },
        {
          path: '/ZTJJDATA/huangjinSJ',
          name: 'huangjinSJ',
          component: ()=> import('@/views/ZTJJDATA/huangjinSJ'),
          meta: {
            title: '黄金数据'
          }
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: login,
      meta: {
        title: '系统登录'
      }
    }
  ]
})
